package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @ClassName HospitalRepository
 * @Description 此类描述:
 * @Author dangchen
 * @DateTime 2022-10-10 16:07
 * @Version 1.0
 */
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    Hospital findByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);
}
